<?php
	/*
	file ini digunakan untuk mengontrol login apakah user telah sesuai prosedur masuk aplikasi
	*/
class c_investor extends CI_Controller {

	function __construct(){
		parent::__construct();
		session_start();
		/*$this->load->helper(array('form', 'url'));
		$this->load->library('form_validation');
		$this->load->model('m_login');
		$this->load->model('m_user');
		$this->form_validation->set_message('required', '%s harus dimasukkan');*/
	}//end Login

	function index(){
          $this->investor();
	}

	function investor(){
		$_SESSION[SESSION_PAGE]=2;

		$data["leftpage"]=$this->get_leftpage();
		$data["centerpage"]=$this->get_centerpage();
		$data["rightpage"]=$this->get_rightpage();
		$data["hl"]=$this->get_highlightpage();
		$this->load->view('v_investor', $data);
	}

	function get_highlightpage(){

		$data["hl"]=$this->m_public_function->get_highlightpage();

		$hlpage=$this->load->view('v_highlight', $data, TRUE);
		return $hlpage;
	}

	function get_leftpage(){

		$data["title"]="Kurs Rupiah";
		$data["epage"]=$this->m_public_function->get_page('awards');
		$leftpage=$this->load->view('v_epage', $data, TRUE);
		return $leftpage;

	}

	function get_centerpage(){

		$data["title"]="<div style=\"background:#e6d098;height:35px;width:100%;\">
						<p style=\"font-weight: bold; align: center; padding: 10px; color: #926705;\">
						Credit Simulation (Flat rate)</p></div>
				";
		$data["epage"]=$this->m_public_function->get_page('kurs_rupiah');
		$centerpage=$this->load->view('v_epage', $data, TRUE);
		return $centerpage;

	}

	function get_rightpage(){

		$data["title"]="Investors";
		$data["epage"]=$this->m_public_function->get_page('investors');
		$rightpage=$this->load->view('v_epage', $data, TRUE);
		return $rightpage;

	}

}
?>
